package net.monare.mifss.evn;

import com.vaadin.ui.Button;
import com.vaadin.ui.UI;

import net.monare.mifss.admin.ui.win.AddNewStorageSetWindow;
import net.monare.mifss.admin.ui.win.ConfigureStorageWindow;

/**
 * Created by jernej on 4/9/14.
 */
public class OpenNewStorageSetWindowListener implements Button.ClickListener {

    private ConfigureStorageWindow configureStorageWindow;

    public OpenNewStorageSetWindowListener(ConfigureStorageWindow configureStorageWindow){
        this.configureStorageWindow = configureStorageWindow;
    }

    @Override
    public void buttonClick(Button.ClickEvent event) {
        UI.getCurrent().addWindow(new AddNewStorageSetWindow(configureStorageWindow));
    }

}
